<?php

namespace App\Http\Requests\Admin\Collection;

use App\Http\Requests\Request;

class CollectionRequest extends Request{
    public function authorize(){
        return true;
    }

    public function rules(){
        return [
            'url' => 'required|url',
        ];
    }

    public function messages(){
        return [
            'url.required' => 'url采集地址不能为空',
            'url.url' => '采集地址必须是有效URL',
        ];
    }
}